
function whatis_D(opt) {
  var msg="claim dependency or category:\n(A)ppararatus,\n(M)ethod,\n(S)ystem,\n(P)roduct,\n(R)readable medium,\n(T)ramsmission signal,\n(O)ther";
  if(opt) {
    return html_whatis("<input type=button value='D' class='NOBUTSEL WHATIS' onclick='"+opt+"'>",msg);
  } else {
    return html_whatis("D",msg);
  } 
}

function whatis_E_button(opt) {
  if(opt) {
    return html_whatis("<input type=button value='E' class='NOBUTSEL WHATIS' onclick='"+opt+"'>",
		       "Set equivalence ");
  } else {
    return html_whatis("<input type=button value='E' class='NOBUTSEL WHATIS' disabled>","claim equivalence");
  }
}

function whatis_E() {
  return html_whatis("E","claim equivalence");
}

function whatis_C() {
  return html_whatis("C","lack of clairity");
}

function whatis_N() {
  return html_whatis("N","lack of novelty");
}

function whatis_I() {
  return html_whatis("I","lack of inventive step");
}

function whatis_G(g) {
  return html_whatis("G",g ? ("belongs to group "+g) : "belongs to no group");
}

function whatis_IMP(inf) {
  if(inf) {
    var vtf=new claim_vtf(inf); 
    return html_whatis("I","Imported from claim "+vtf.getcl()+" claim set version "+vtf.getver());
  } else {
    return html_whatis("I","No imported data");
  }
}

function whatis_REP_button(inf,opt,id) {
  if(inf) {
    var vtf=new claim_vtf(inf); 
    if(opt) {
      return html_whatis("<input type=button value=' R ' onclick='"+opt+"' class='NOBUTSEL WHATIS'>",
			 "Replace with claim "+vtf.getcl()+" claim set version "+vtf.getver(),id);
    } else {
      return html_whatis("M","Replace with claim "+vtf.getcl()+" claim set version "+vtf.getver(),id);
    }
  }
  if(opt) {
    return html_whatis("<input type=button value='R' onclick='"+opt+"' class='NOBUTSEL WHATIS'>","Import",id);
  } else {
    return html_whatis("<input type=button value='R' class='NOBUTSEL WHATIS' disabled>","replaced by previous claim",id);
  }
}

function whatis_MRG_button(inf,opt,id) {
  if(inf) {
    var vtf=new claim_vtf(inf); 
    if(opt) {
      return html_whatis("<input type=button value=' M ' onclick='"+opt+"' class='NOBUTSEL WHATIS'>",
			 "Merge with claim "+vtf.getcl()+" claim set version "+vtf.getver(),id);
    } else {
      return html_whatis("M","Merge with claim "+vtf.getcl()+" claim set version "+vtf.getver(),id);
    }
  }
  if(opt) {
    return html_whatis("<input type=button value='M' onclick='"+opt+"' class='NOBUTSEL WHATIS'>","Import",id);
  } else {
    return html_whatis("<input type=button value='M' class='NOBUTSEL WHATIS' disabled>","merged with previous claim",id);
  }
}

function whatis_IMP_button(inf,opt,id) {
  if(inf) {
    var vtf=new claim_vtf(inf); 
    if(opt) {
      return html_whatis("<input type=button value=' I ' onclick='"+opt+"' class='NOBUTSEL WHATIS'>","Import from claim "+vtf.getcl()+" claim set version "+vtf.getver(),id);
    } else {
      return html_whatis("I","Imported from claim "+vtf.getcl()+" claim set version "+vtf.getver(),id);
    }
  }
  if(opt) {
    return html_whatis("<input type=button value='I' onclick='"+opt+"' class='NOBUTSEL WHATIS'>","Import",id);
  } else {
    return html_whatis("<input type=button value='I' class='NOBUTSEL WHATIS' disabled>","imported from previous claim",id);
  }
}

function setwhatis_IMP(id,inf) {
  var vtf=new claim_vtf(inf); 
  html_setwhatis(id,"Import from claim "+vtf.getcl()+" claim set version "+vtf.getver());
}

